
<%@ page import="buscar.Parceiro"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="layout" content="main" />
<g:set var="entityName"
	value="${message(code: 'parceiro.label', default: 'Parceiro')}" />
<title><g:message code="default.list.label" args="[entityName]" />
</title>
</head>
<body>
	<div class="nav">
		<span class="menuButton"><a class="home"
			href="${createLink(uri: '/')}"><g:message
					code="default.home.label" /> </a> </span> <span class="menuButton"><g:link
				class="create" action="create">
				<g:message code="default.new.label" args="[entityName]" />
			</g:link> </span>
			
	</div>
	<div class="body">
		<h1>
			<g:message code="default.list.label" args="[entityName]" />
		</h1>
		<g:if test="${flash.message}">
			<div class="message">
				${flash.message}
			</div>
		</g:if>
		<div class="list">
			<table>
				<thead>
					<tr>

						<g:sortableColumn property="id"
							title="${message(code: 'parceiro.id.label', default: 'Id')}" />
						<g:sortableColumn property="cnpj"
							title="${message(code: 'parceiro.cnpj.label', default: 'Cnpj')}" />
						<g:sortableColumn property="cnpj"
							title="${message(code: 'parceiro.empresa.label', default: 'Empresa')}" />

						<g:sortableColumn property="cep"
							title="${message(code: 'parceiro.cep.label', default: 'Cep')}" />

						<g:sortableColumn property="cidade"
							title="${message(code: 'parceiro.cidade.label', default: 'Cidade')}" />





						<g:sortableColumn property="descricao"
							title="${message(code: 'parceiro.descricao.label', default: 'Descricao')}" />

					</tr>
				</thead>
				<tbody>
					<g:each in="${parceiroInstanceList}" status="i"
						var="parceiroInstance">
						<tr class="${(i % 2) == 0 ? 'odd' : 'even'}">

							<td><g:link action="show" id="${parceiroInstance.id}">
									${fieldValue(bean: parceiroInstance, field: "id")}
								</g:link>
							</td>

							<td>
								${fieldValue(bean: parceiroInstance, field: "cnpj")}
							</td>


							<td>
								${fieldValue(bean: parceiroInstance, field: "empresa")}
							</td>

							<td>
								${fieldValue(bean: parceiroInstance, field: "cep")}
							</td>

							<td>
								${fieldValue(bean: parceiroInstance, field: "cidade")}
							</td>


							<td>
								${fieldValue(bean: parceiroInstance, field: "descricao")}
							</td>

						</tr>
					</g:each>
				</tbody>
			</table>
		</div>
		<div class="paginateButtons">
			<g:paginate total="${parceiroInstanceTotal}" />
		</div>
		
	</div>
</body>
</html>





 
